﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XsqTech.SmartOA.Dtos.XSPDto.FromDto
{
    public class AddFromDto
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public Guid Id { get; set; }
        /// <summary>
        /// 表单名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string FormName { get; set; }
        /// <summary>
        /// 表单数据
        /// </summary>
        [Required]
        [MaxLength]
        public string FormJson { get; set; }

        /// <summary>
        /// 表单描述
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Description { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatePerson { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdatePerson { get; set; }
    }
}
